//
//  BTLSSLSocketHandler.h
//  BTLSSLSocketHandlers
//
//  Created by Buckley on 12/28/08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import <BTLSockets/BTLSockets.h>
#include <openssl/ssl.h>

@interface BTLSSLSocketHandler : BTLSocketHandler {
	int readfd;
	int writefd;
	
	int remoteReadfd;
	int remoteWritefd;
	
	SSL_METHOD* method;
	SSL_CTX* context;
	SSL* ssl;
}

- (id)initWithMethod:(SSL_METHOD*)aMethod;

@end

@protocol BTLSSLSocketHandlerDelegate
- (void)sslConnectionClosedByRemoteHostOnHandler:(BTLSSLSocketHandler*)sender;
@end
